package com.burpee.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.burpee.dao.FoodScheduleDao;
import com.burpee.ui.FoodSchedule;

@Service(value="foodscheduleService")
public class FoodScheduleServiceImpl implements FoodScheduleService {

	@Autowired
	FoodScheduleDao foodScheduleDao;
	public List<FoodSchedule> list(FoodSchedule foodSchedule) {
		
		return foodScheduleDao.list(foodSchedule);
	}
	public FoodSchedule view(FoodSchedule foodSchedule) {
		
		return foodScheduleDao.view(foodSchedule);
	}

	public boolean add(FoodSchedule foodSchedule) {
		if(foodScheduleDao.add(foodSchedule) > 0){
			return true;
		}
		else{

			return false;
		}
	}

	public boolean modify(FoodSchedule foodSchedule) {
		if(foodScheduleDao.modify(foodSchedule) > 0){
			return true;
		}
		else{

			return false;
		}
	}

	public boolean remove(FoodSchedule foodSchedule) {
		if(foodScheduleDao.remove(foodSchedule) > 0){
			return true;
		}
		else{

			return false;
		}
	}

}
